/*
 * @(#)PagingElement.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.web.taglibs.pager;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Web Platform Development Team
 * */
public class PagingElement {
	private String before;
	private String after;
	private String elementType;
	private Map<String, String> properties;

	public String getBefore() {
		return before;
	}

	public void setBefore(String before) {
		this.before = before;
	}

	public String getAfter() {
		return after;
	}

	public void setAfter(String after) {
		this.after = after;
	}

	public String getElementType() {
		return elementType;
	}

	public void setElementType(String elementType) {
		this.elementType = elementType;
	}

	public void setProperties(Map<String, String> properties) {
		this.properties = properties;
	}

	/**
	 * @param name name
	 * @return value
	 * */
	public String get(String name) {
		return properties == null ? null : properties.get(name);
	}
	
	/**
	 * @return properties
	 * */
	public Map<String, String> getProperties() {
		if (properties == null) {
			properties = new HashMap<String, String>();
		}
		
		return properties;
	}
}
